#include "Data/Objects/PlayerType.h"

namespace data {

	PlayerType StringToPlayerType( const std::string& string ) {
		if( string == "HumanPlayer" )
			return PlayerType::HumanPlayer;
		if( string == "EmptyPlayer" )
			return PlayerType::EmptyPlayer;
		if( string == "Unknown" )
			return PlayerType::Unknown;
		return PlayerType::Unknown;
	}

	std::string PlayerTypeToString( const PlayerType& playerType ) {
		if( playerType == PlayerType::HumanPlayer )
			return "HumanPlayer";
		if( playerType == PlayerType::EmptyPlayer )
			return "EmptyPlayer";
		if( playerType == PlayerType::Unknown )
			return "Unknown";
		return "Unknown";
	}
}
